package com.greate.community.util;

public enum BusCodeEnum {

    SUCCESS(0,"操作成功！"),
    FAILED(1,"操作失败，请重试"),
    NO_LOGGING_USER(10000, "用户未登录！"),
    LOGGING_LOST(10001, "登录失效！"),

    MISSING_TITLE(20000,"标题不能为空！"),
    MISSING_CONTENT(20001, "缺少必填内容"),


    ERROR_FORMAT_ERROR(30000,"文件格式错误！"),
    ERROR_SAVE_ERROR(30001,"文件储存错误！")
    ;

    private Integer code;
    private String msg;

    BusCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
